package com.langrensha.langrensha;

import com.langrensha.langrensha.netty.WebsocketChatServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class LangrenshaApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext cxt =
                SpringApplication.run(LangrenshaApplication.class, args);

        try {
            new WebsocketChatServer(6379).run();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
